body{
  margin: 0;
}

.header hgroup{
  margin:5px;
}

.header h1{
  margin:0;
  font-size: 24px;
}

.header h2{
  margin: 5px 0;
  font-size: 18px;
}

.header p{
  font-size: 14px;
  padding: 5px;
  color: #666;
}


@media (min-width:700px) {
  .container{
    width: 700px;
    min-height: 300px;
    margin:0 auto;
  }

  .header{
    padding: 5px;
    height: 150px;
    border-radius: 20px 20px 0 0;
    border:1px solid #bbb;
    background-color: #eee;
  }

  #mainmenu{
    display:none;
  }
  nav > ul{
    list-style: none;
    background-color: #444;
    margin:0px;
    position: relative;
  }
  nav > ul > li{
    display: inline-block;
    line-height: 30px;
    padding: 0 10px;
  }

  nav > ul > li ul{
    display: none;
  }

  nav a{
    color: #FFF;
    font-size: 14px;
    text-decoration: none;
  }

  nav > ul > li > a:hover{
    font-size: 16px;
    font-weight: bold;
    color: #F00;
  }

  nav > ul > li:hover > ul{
    display: block;
  }

  nav > ul > li > ul{
    background-color: #666;
    list-style: none;
    text-align: center;
    position: absolute;
    top:30px;
    width: 100px;
    margin: 0;
    padding: 0;
  }

  nav > ul > li > ul > li{
    border-bottom: 1px dashed #FFF;
  }

  nav > ul > li > ul > li:nth-last-child(1){
    border:none;
  }

  nav > ul > li > ul > li:hover{
    width:100px;
    background-color: #eee;
  }
  nav > ul > li > ul > li:hover > a{
    color:#333;
  }

  nav > ul > li > ul > li:hover ul{
    display: inline-block;
    list-style: none;
    background-color: #999;
    text-align: center;
    position: absolute;
    width: 100px;
    left:100px;
    margin: 0;
    padding: 0;
  }

  nav > ul > li > ul > li > ul > li{
    border-bottom: 1px dashed #FFF;
  }

  nav > ul > li > ul > li > ul > li:nth-last-child(1){
    border-bottom: none;
  }

  nav > ul > li > ul > li > ul > li:hover{
    width:100px;
    background-color: #ddd;
  }
  nav > ul > li > ul > li > ul > li:hover > a{
    color:#222;
  }

  .main{
    width: 698px;
    min-height: 300px;
    border:1px solid #bbb;
    background-color: #eee;
  }

  .products{
    width:698px;
    min-height: 300px;
  }

}
@media (max-width:699px){
  .container{
    min-width: 300px;
    min-height: 500px;
    margin:0 auto;
  }
  .header{
    padding: 5px;
    min-height: 150px;
    min-width: 300px;
    border-radius: 20px 20px 0 0;
    border:1px solid #bbb;
    background-color: #eee;
  }

  .main{
    min-width: 300px;
    min-height: 300px;
    border:1px solid #bbb;
    background-color: #eee;
  }

  .products{
    width:100%;
    min-height: 300px;
  }
  #mainmenu{
    display:block;
    width: 100%;
    background-color: #444;
    height: 30px;
  }
  #mainmenu > span {
    display: block;
    margin-left: 10px;
    width: 80px;
    line-height: 30px;
    text-align: center;
    color: #444;
    cursor: pointer;
    background-color: #FFF;
  }
  #mainmenu > span:hover{
    color: #F00;
    font-weight: bold;
  }

  nav ul{
    list-style:none;
    background-color: #666;
    margin:0;
    padding: 0;
    z-index: 999;
    display: none;
  }
  nav ul a{
    text-decoration: none;
    color:#333;
  }
  nav > ul{
    min-width: 100px;
    max-width: 150px;
    position: absolute;
    left: 10px;
    padding: 0;
    margin: 0;
  }
  /*隐藏首页菜单 */
  nav ul li:nth-child(1){
    display: none;
  }

  nav ul li{
    display: inline-block;
    min-width: 100px;
    max-width: 150px;
    line-height: 30px;
    width: 100%;
    cursor: pointer;
  }

  nav > ul > li> a{
    color: #FFF;
    padding-left: 10px;
  }
  nav > ul > li:hover{
    background-color: #777;
  }

  nav > ul > li > ul{
    display:none;
    background-color: #aaa;
  }


  nav > ul > li > ul > li{
    display: inline-block;
  }
  nav > ul > li > ul > li:hover{
    background-color: #888;
  }

  nav > ul > li > ul > li > ul {
    display: none;
    margin: 0;
    padding: 0;
    background-color: #ddd;
  }
  nav > ul > li > ul > li > ul > li{
    display: inline-block;
    border-bottom: 1px dashed #FFF;
  }
  nav > ul > li > ul > li > ul > li:hover{
    background-color: #eee;
  }
  nav > ul > li > ul > li > ul > li:nth-last-child(1){
    border-bottom: none;
  }
  nav > ul > li > ul > li > ul > li > a{
    margin-left: 10px;
  }

}

.products > h1{
  font-size: 22px;
  margin: 5px;

}
.product{
  width:120px;
  height: 160px;
  border:1px solid #333;
  text-align: center;
  margin: 8px;
  display: inline-block;
}


.product > h4{
  margin: 0;
  font-size: 16px;
  padding: 5px;
}

.product > img{
  width:100px;
  height: 100px;
}
.product > p{
  margin: 0px;
  font-size: 14px;
  color: #333;
}
